package com.mrx.java8.defmethod;

import org.junit.jupiter.api.Test;

public class SubClass2 implements MyInterface,MyInterface2 {


    @Override
    public String getName() {
        return MyInterface.super.getName();
        //return MyInterface2.super.getName();
    }

    @Test
    public void test(){
        String name = getName();
        System.out.println(name);

        MyInterface.show();
    }
}
